#include "stdafx.h"
#include "ExporterDescription.h"

BOOL APIENTRY DllMain(HMODULE module, DWORD reasonForCall, LPVOID reserved)
{
	switch(reasonForCall)
	{
		case DLL_PROCESS_ATTACH:
		case DLL_THREAD_ATTACH:
		case DLL_THREAD_DETACH:
		case DLL_PROCESS_DETACH:
			break;
	}

	return TRUE;
}

__declspec(dllexport) int LibNumberClasses()
{
	return 1;
}

__declspec(dllexport) ClassDesc * LibClassDesc(int i)
{
	// create class description if needed
	static ExporterDescription * exporterDescription = NULL;
	if(exporterDescription == NULL)
		exporterDescription = new ExporterDescription();

	switch (i)
	{
		case 0: 
			return exporterDescription;

		default:
			return 0;
	}
}

__declspec(dllexport) const TCHAR * LibDescription()
{
	return _T("Arello Mobile scene exporter.");
}

__declspec(dllexport) ULONG LibVersion()
{
	return VERSION_3DSMAX;
}

__declspec(dllexport) ULONG CanAutoDefer()
{
	return 1;
}